{extend name="public\basic"}
{block name="main"}
    <div>
        {auth:button rule="home/auth/add" rules="$buttons"}<button action="dialog" action-url="{:url('add')}" action-title="新增权限组" class = "layui-btn layui-btn-success">新增</button>{/auth:button}
    </div>
    <table class = "layui-table">
        <thead>
            <tr>
                <th>ID</th>
                <th>权限组名称</th>
                <th>备注</th>
                <th>添加时间</th>
                <th>操作</th>
            </tr>
        </thead>
        <tbody>
            {php}$k=0;{/php}
            {volist name="list" id="v"}
            <tr>
                <td>{++$k}</td>
                <td>{$v.auth_name}</td>
                <td>{$v.auth_remark}</td>
                <td>{$v.auth_addtime}</td>
                <td>
                    {if condition="$v['auth_id'] neq 1"}
                    {auth:button rules="$buttons" rule="home/auth/auth_index"}<a href = "{:url('/home/Auth/auth_index', 'id='.$v['auth_id'])}"><i class="layui-icon layui-icon-about"></i></a>&nbsp;{/auth:button}
                    {auth:button rules="$buttons" rule="home/auth/add"}<a href="javascript:;" action="dialog" action-url="{:url('/home/Auth/add', 'id='.$v['auth_id'])}"><i class="layui-icon layui-icon-edit"></i></a>&nbsp;{/auth:button}
                    {auth:button rules="$buttons" rule="home/auth/auth_del"}<a class="confirm ajax-get" title="删除" href="{:url('auth_del','id='.$v['auth_id'])}"><i class="layui-icon layui-icon-delete" ></i></a>{/auth:button}
                    {/if}
                </td>

            </tr>
            {/volist}
        </tbody>
    </table>
    {$list->render()}
{/block}
